package com.zk.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zk.bean.UserMsg;
import com.zk.mapper.UserMsgMapper;
import com.zk.service.IUserMsgService;


/*
 * 保存信息服務
 */
@Service
public class UserMsgServiceImpl implements IUserMsgService{

	@Autowired
	UserMsgMapper userMsgMapper;
	
	@Override
	public String saveMsg(UserMsg um) {		
		
		userMsgMapper.saveMsg(um);
		return "成功";
	}

	@Override
	public List<Map<String, String>> queryUser() {
		System.err.println(userMsgMapper.queryUser().toString());
		return null;
	}
	
}
